Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Added an API method to retrieve groups #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pwillsey
Copy link
Contributor

@pwillsey pwillsey commented Jun 3, 2015

We probably need to add some methods to the APIClient to allow people to do common things easily without having to formulate a get or post request on their own. I started off with a method to retrieve groups for the current user which returns an array of model objects. I created a model object called YMGroup and I tried using Mantle to handle the JSON deserialization.

Going forward I think we need to add API methods to return feeds (algo, groups, following, etc), joining, following, liking, replying and user related stuff as well.

I'm not sure whether this PR should actually be merged, but I thought it would do a good job of illustrating one approach we can take.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant